package com.smart.campus.school.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;

/**
 * 消费设备对象 sc_pos
 * 
 * @author Zhihe.Li
 * @date 2020-07-27
 */
public class Pos extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备自编号 */
    @Excel(name = "设备号")
    private String posNo;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String posSn;

    /** 设备端口号 */
    @Excel(name = "设备端口号")
    private Long posPort;

    /** 设备IP地址 */
    @Excel(name = "设备IP地址")
    private String posIp;

    /** 状态：1启用2停用 */
    @Excel(name = "状态：1启用2停用")
    private Integer posStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPosNo(String posNo)
    {
        this.posNo = posNo;
    }

    public String getPosNo()
    {
        return posNo;
    }
    public void setPosSn(String posSn) 
    {
        this.posSn = posSn;
    }

    public String getPosSn() 
    {
        return posSn;
    }
    public void setPosPort(Long posPort) 
    {
        this.posPort = posPort;
    }

    public Long getPosPort() 
    {
        return posPort;
    }
    public void setPosIp(String posIp) 
    {
        this.posIp = posIp;
    }

    public String getPosIp() 
    {
        return posIp;
    }
    public void setPosStatus(Integer posStatus) 
    {
        this.posStatus = posStatus;
    }

    public Integer getPosStatus() 
    {
        return posStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("posNo", getPosNo())
            .append("posSn", getPosSn())
            .append("posPort", getPosPort())
            .append("posIp", getPosIp())
            .append("posStatus", getPosStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
